﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaxiOnline.DAL.Abstract;

namespace TaxiOnline.DAL.Models
{
    public class DeliveryOrder: Entity
    {
        public User User { get; set; }
        public Driver Driver { get; set; }
        public Address Departure { get; set; }
        public Address Arrival { get; set; }
        public OrderState State { get; set; }
        public int TransportationWeight { get; set; }

        public DeliveryOrder() {
            Id = -1;
            User = new User();
            Driver = new Driver();
            Departure = new Address();
            Arrival = new Address();
            State = new OrderState();
            TransportationWeight = 0;
        }

        public DeliveryOrder(int id, User user, Driver driver,
            Address departure, Address arrival, OrderState state, int transportationWeight)
        {
                Id = id;
                User = user;
                Driver = driver;
                Departure = departure;
                Arrival = arrival;
                State = state;
                TransportationWeight = transportationWeight;
        }
    }
}
